<?php
/*
 * [佳喜网络!] (C)2008-2009 JiaXi Inc.
 * $Id: include.php 2008-8-13 19:28:02 pepsi.zh $
 * -------------------------------------------
 * 网址：www.he88.cn
 * -------------------------------------------
 * 这是一个共享软件，遵循我们公司的共享协议。
*/
define('UNINCLUDELIMIT',true);
$outvar = array();
include_once('include/include.php');
$outvar[csslist][] = $outvar[css_url].'register.css';
$outvar[jslist][] = DEFAULT_JS_URL.'classCookie.js';
if ($_SESSION[userName]){
	header('location:index.php');
	exit;
}
if ($_POST){
	c_create::createClass('user');
	$user = new user();
	if ($user->userLogin($_POST[username],$_POST[password])){
		header('location:'.$_SERVER['HTTP_REFERER']);
		exit;
	}else {
		$_SESSION[showtip] = '登录失败';
	}
	$outvar[username] = $_POST[username];
}
$outvar[classtype] = 'type'.rand(1,3);
assignMore($outvar);
$t->display('member/login.html');
//outFile('member/login');
?>